//导入封装好的基地址
import request from "@/utils/requset";


//导入yaml格式转换
import YAMl from 'json2yaml'


//封装一个获取路线的的接口请求
export const geteditorsApi = () => {
    return request({
        url: '/mwrobot_feasible_region/get',
    })
}

//封装一个新增路线的接口请求
export const addeditorsApi = (data) => {
    return request({
        url: '/mwrobot_feasible_region/add',
        method: 'POST',
        data: YAMl.stringify(data)
    })
}

//封装一个修改的路线的接口请求
export const updateeditorsApi = (data) => {
    return request({
        url: '/mwrobot_feasible_region/update',
        method: 'POST',
        data: YAMl.stringify(data)
    })
}


// 封装一个删除路线的接口请求
export const popeditorsApi = (id) => {
    return request({
        url: '/mwrobot_feasible_region/delate',
        method: 'POST',
        data: YAMl.stringify(id)
    })
}